<%@include file="/WEB-INF/pages/commons/commons.jsp"%>

<c:set var="selectedTab" value="ForgottenPassword" scope="request" />
<fmt:message var="title" key="forgottenPassword.jsp.title" />
<stripes:layout-render name="${themePath}/layouts/login_layout.jsp" title="${title}" >
<stripes:layout-component name="body">

    <stripes:messages/>
    <stripes:errors globalErrorsOnly="true"/>


    <jsecurity:lacksPermission name="user:forgottenPassword:*">
        No "user:forgottenPassword:*" permission
    </jsecurity:lacksPermission>

    <jsecurity:hasPermission name="user:forgottenPassword:*">
    <stripes:form method="POST" beanclass="foo.bar.blog.web.action.general.ForgottenPasswordActionBean">
        <p><stripes:errors globalErrorsOnly="false" beanclass="foo.bar.blog.web.action.general.ForgottenPasswordActionBean"/></p>
        <p>
        <stripes:label for="username"/><stripes:text name="username"/>
        <stripes:label for="email"/><stripes:text name="email"/>
        <br/><br/>
        <img src="<c:url value='/kaptcha.jpg'/>"/>
        <br/>
        <stripes:text name="captcha"/>
        <br/><br/>
        <stripes:submit name="handleForgottenPassword"><fmt:message key="forgottenPassword.jsp.submit"/></stripes:submit>
        </p>
    </stripes:form>
    </jsecurity:hasPermission>
</stripes:layout-component>
</stripes:layout-render>

